﻿using Hegang.APP.Models;
using Hegang.APP.Models.DataBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hegang.APP.Services.DbService.Impl
{
    class M_vib : DbServiceObject
    {
        public void save(DbObject o, ref DbServiceInput input)
        {
            string sql = string.Format(
                "INSERT INTO `m_vib` (`vib1`,`vib2`,`vib3`,`timeStamp`) VALUES ( '{0}','{1}','{2}','{3}');",
                input.Dic["传感器.主井机柜.振动1"],
                input.Dic["传感器.主井机柜.振动2"],
                input.Dic["传感器.主井机柜.振动3"],
                System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            o.cmmdNoReturn(sql);
        }
    }
}
